package cn.wang.pojo;

import cn.wang.common.vo.PageResult;
import lombok.Data;

import java.util.List;
import java.util.Map;

@Data
public class SearchResult extends PageResult<Goods> {
    private List<Brand> brandList;           // 品牌列表
    private List<Category> categoryList;    // 商品分类列表i
    private List<Map<String,Object>> specList; // 规格参数列表
    public SearchResult(long total, int totalPages, List<Goods> content, List<Category> categoryList,
                        List<Brand> brandList, List<Map<String,Object>> specList) {
        this.setTotal(total);
        this.setTotalPage(totalPages);
        this.setItems(content);
        this.setCategoryList(categoryList);
        this.setBrandList(brandList);
        this.setSpecList(specList);
    }
}
